package com.talent.service.iot.mqtt.service;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * @ClassName：DefaultMqttAuthenticationServiceImpl
 * @Author: hszhou
 * @Date: 2025/1/17 17:16
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
@Service
@ConditionalOnProperty(prefix = "mqtt", name = "store-strategy", havingValue = StoreStrategy.LOCAL)
public class LocalMqttAuthenticationServiceImpl implements IAuthenticationService {

    @Override
    public boolean authenticationByUserName(String username, String password) {
        return true;
    }

    @Override
    public boolean authenticationByClientId(String clientId) {
        return true;
    }
}
